package cn.com.tiza.spiro.jvm.study;

/**
 * Created by TZ0643 on 2015-12-24.
 */
public class FinalizeTestObj {

    @Override
    protected void finalize() throws Throwable {
        System.out.println(this.getClass().getName() + " -- finalize()");
    }


    public static void main(String[] args) throws InterruptedException {
        while (true) {
            FinalizeTestObj obj = new FinalizeTestObj();
            break;
        }
        System.gc();
        Thread.sleep(10000);
    }
}
